<template>
    <div class="talk">
        <main class="talk-main">
            <entry v-for="item in entry.data" :key="item.id" :obj="item" ></entry>
        </main>

    </div>
</template>
<script>
import entry from '../components/entry.vue'
import {mapState} from "vuex"
export default {
    name:"talk",
    components:{
        entry
    },
    computed:{
        ...mapState(["entry"])
    },
    beforeRouteLeave(to,from,next){
        this.$store.state.fromPagePath =from.path;
        next();
    }
}
</script>
<style lang="scss" scoped>
.talk-main{
}
</style>